﻿using MimeKit.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PineLake.Drmwe.EMail.MailKitEMail.Model
{
    /// <summary>
    /// 发送EMail 实体
    /// </summary>
    public class MailData
    {
        /// <summary>
        /// 发送邮件的账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 发送邮件的密码
        /// </summary>
        public string PassWord { get; set; }
        /// <summary>
        /// 发送邮件服务器(Smtp.XX.COM)
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        /// 发送邮件服务器 端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 发送人EMail
        /// </summary>
        public string FromEmail { get; set; }
        /// <summary>
        /// 收件人EMail
        /// </summary>
        public List<ToEmail> ToEMailList { get; set; }
        /// <summary>
        /// 标题内容
        /// </summary>
        public string Subject { get; set; }

        /// <summary>
        /// 邮件内容类型(默认Html格式的内容)
        /// </summary>
        public TextFormat BodyContentType { get; set; } = TextFormat.Html;
        /// <summary>
        /// 邮件内容
        /// </summary>
        public string? BodyContent { get; set; }
        /// <summary>
        /// 抄送者Email地址
        /// </summary>
        public string Cc { get; set; }

        /// <summary>
        /// 附件绝对路径如:(F:\Pinelake.xlsx")
        /// </summary>
        public List<string>? FileAbsolutePaths { get; set; }

        /// <summary>
        /// 是否开启ssl
        /// </summary>
        public bool IsOpenSSL { get; set; } = false;
    }
}
